import request from '@/utils/request'

// http://192.168.3.25:8086/upload_view/20200616/dd3db3881119493abfa7914b0374623b.pdf
export function getPdf() {
  return request({
    url: '../upload_view/20200616/dd3db3881119493abfa7914b0374623b.pdf',
    method: 'get',
    params: { token: 'opbSrKMVfiVVZHJlxHvwdayp1as8ZA0ZJ6h2i4HLcKhc4iYERCzoEGjifnnSAyrj' }
  })
}



export function checkViewData(months) {
  return request({
    url: '/account/check/view_data',
    method: 'get',
    params:{months}
  })
}

export function queryMuneList(params) {
  return request({
    url: '/account/obtain/mune',
    method: 'get',
    params
  })
}
export function queryYearList(params) {
  return request({
    url: '/account/query/year_list',
    method: 'get',
    params
  })
}

export function queryAutopayList(data) {
  return request({
    url: '/account/query/auto_pay',
    method: 'post',
    data,
    _transformRequest: true
  })
}

export function queryAllocationList(data) {
  return request({
    url: '/account/query/funding_allocation',
    method: 'post',
    data,
    _transformRequest: true
  })
}

export function queryMasterList(data) {
  return request({
    url: '/account/query/master_details',
    method: 'post',
    data,
    _transformRequest: true
  })
}

export function querySessionsList(data) {
  return request({
    url: '/account/query/number_session',
    method: 'post',
    data,
    _transformRequest: true
  })
}

export function closeAutopay(data) {
  return request({
    url: '/account/close/autopay',
    method: 'post',
    data,
    _transformRequest: true
  })
}

export function closeMonth(data) {
  return request({
    url: '/account/close/month',
    method: 'post',
    data
  })
}
// Colse Coach cut-off
export function closeCoach(data) {
  return request({
    url: '/account/close/coach',
    method: 'post',
    data
  })
}
